package com.tarena.view;

import javax.swing.*;
import java.util.ArrayList;

public class FriListModel extends AbstractListModel {
    private ArrayList uArray;//好友类表；

    public FriListModel(ArrayList uArray){
        this.uArray=uArray;

    }

    @Override
    public int getSize() {
        return uArray.size();

    }

    @Override
    public Object getElementAt(int index) {
        return uArray.get(index) ;

    }
}
